package com.bluesmart.mia;

import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class LowBareActivity extends BaseActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_low_bare);
		
		if(getIntent().getExtras().getInt("flag") == 0)
		{
			findViewById(R.id.screen).setBackgroundColor(Color.parseColor("#fa7597"));
			((TextView)findViewById(R.id.text0)).setText(getString(R.string.low_bare));
		}
		else {
			findViewById(R.id.screen).setBackgroundColor(Color.parseColor("#e19a47"));
			((TextView)findViewById(R.id.text0)).setText(getString(R.string.milk_expire));
		}
		
		findViewById(R.id.btn0).setOnClickListener(new OnClickListener(){
			@Override
			public void onClick(View arg0) {
				finish();
			}
		});
	}
}
